package com.turbo.boot.crawler.controller.admin;

import cn.hutool.json.JSONObject;
import com.turbo.boot.crawler.dao.entity.CrawlerGroupEntity;
import com.turbo.boot.crawler.service.ICrawlerGroupService;
import com.turbo.framework.annatation.TurboRestController;
import com.turbo.starter.base.rest.BaseController;
import io.swagger.v3.oas.annotations.tags.Tag;

import javax.servlet.http.HttpServletRequest;

/**
 * Sofr
 */
@Tag(name = "爬虫分组", description = "爬虫分组")
@TurboRestController(value = "/admin/crawler/group", api = {"add", "delete", "update", "page", "list", "info"})
public class AdminCrawlerGroupController extends BaseController<ICrawlerGroupService, CrawlerGroupEntity> {


    @Override
    protected void init(HttpServletRequest request, JSONObject requestParams) {
        setPageOption(createOp().keyWordLikeFields("en_name", "cn_name"));
    }
}